//
//  Common.swift
//  HMVVeibo23
//
//  Created by apple on 17/1/16.
//  Copyright © 2017年 apple. All rights reserved.
//

import UIKit

/*
   - 相当于OC中的pch 文件
 */

//通知需要的名称  切换跟控制器的通知名字
let SWITCHROOTVIEWCONTROLLERNOTI = "SWITCHROOTVIEWCONTROLLERNOTI"

//表情按钮点击通知
let EMOTICONBUTTONNOTI = "EMOTICONBUTTONNOTI"
//删除按钮点击通知
let EMOTICONDELETEBUTTONNOTI = "EMOTICONDELETEBUTTONNOTI"


// 新浪微博需要的信息
let APPKEY = "1937751482"
let APPSECRET = "68df857ddcd835299ab5b1dc41aca6d4"
let REDIRECT_URI = "http://www.baidu.com"
//微博账号密码
//let ZZWeiBoId = "17600274600"
//let ZZPassWd = "zhang5096212"

let ZZWeiBoId = "18510206702"
let ZZPassWd = "zhuo5096212"
// 屏幕的宽度和高度
let ZZSCREENW = UIScreen.main.bounds.width
let ZZSCREENH = UIScreen.main.bounds.height
// 微博的主题颜色
let ZZThemeColor = UIColor.orange
//常用字体大小

let ZZSMALLFONTSIZE: CGFloat = 10
let ZZNORMALFONTSIZE: CGFloat = 14
let ZZLARGEFONTSIZE: CGFloat = 18


// RGB颜色
func RGB(r:Float, g: Float, b: Float, alpha: Float = 1) -> UIColor {
    return UIColor(colorLiteralRed: r/Float(255), green: g/Float(255), blue: b/Float(255), alpha: alpha)
}
// 随机颜色
func ZZRandomColor() -> UIColor{
    let r =  Float(arc4random()%256)
    let g =  Float(arc4random()%256)
    let b =  Float(arc4random()%256)
    return RGB(r: r, g: g, b: b)
}





